import request from '@/utils/request'

// 查询司机列表
export function listDanny2(query) {
  return request({
    url: '/danny2/danny2/list',
    method: 'get',
    params: query
  })
}

// 查询司机详细
export function getDanny2(driverId) {
  return request({
    url: '/danny2/danny2/' + driverId,
    method: 'get'
  })
}

// 新增司机
export function addDanny2(data) {
  return request({
    url: '/danny2/danny2',
    method: 'post',
    data: data
  })
}

// 修改司机
export function updateDanny2(data) {
  return request({
    url: '/danny2/danny2',
    method: 'put',
    data: data
  })
}

// 删除司机
export function delDanny2(driverId) {
  return request({
    url: '/danny2/danny2/' + driverId,
    method: 'delete'
  })
}
